home *** CD-ROM | disk | FTP | other *** search
- public class StingerSound extends Codex {
- private String _soundName;
- private float _minDist;
- private float _maxDist;
- private int _volume;
- private int _pan;
- private int _flags;
- private float _minFrequency;
- private float _maxFrequency;
- public static String[] _params = new String[]{"Sound name", "Min Distance;300", "MaxDistance;600", "Volume;75", "Pan;0", "Flags;0", "Min Frequency;5", "Max Frequency;10"};
-
- public void beginscene(int clientGuid, int captureID) {
- ((Codex)this).SetTimer((float)((double)this._minFrequency + Math.random() * (double)(this._maxFrequency - this._minFrequency)));
- }
-
- public StingerSound(String soundName, float minDist, float maxDist, int volume, int pan, int flags, float minFrequency, float maxFrequency) {
- this._soundName = soundName;
- this._minDist = minDist;
- this._maxDist = maxDist;
- this._volume = volume;
- this._pan = pan;
- this._flags = flags;
- this._minFrequency = minFrequency;
- this._maxFrequency = maxFrequency;
- }
-
- public void timer(int timerID, float arg0, float arg1, float arg2, float arg3) {
- new CodexSound(this._soundName, this._minDist, this._maxDist, this._volume, this._pan, this._flags, ((Codex)this).GetClassThing());
- ((Codex)this).SetTimer((float)((double)this._minFrequency + Math.random() * (double)(this._maxFrequency - this._minFrequency)));
- }
- }
-